package com.ophiux.cs.domain.core;

import com.ophiux.compoments.RedisComponent;
import com.ophiux.compoments.TableEnum;

/**
 * 业务表ID生产工厂
 * @author chenh
 *
 */
public class TbableUniqueIDFactory extends UniqueIDFactory {

	private static TbableUniqueIDFactory TbableUniqueIDFactory;
	
	public static TbableUniqueIDFactory getInstance() {
		if(TbableUniqueIDFactory == null) {
			TbableUniqueIDFactory = new TbableUniqueIDFactory();
		}
		return TbableUniqueIDFactory;
	}
	
	@Override
	public String createUniqueID(String... params) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String createUniqueID(String table_key) {
		return RedisComponent.getTableNextSeq(table_key) + "";
	}

}
